package com.jl.jlapp.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.GoodsDetailModel;

import java.util.List;

public class GoodsEvaluationImageAdapter
  extends BaseQuickAdapter<GoodsDetailModel.ResultDataBean.GoodsEvaluationsBean.EvaluationPicsBean, BaseViewHolder>
{
  public GoodsEvaluationImageAdapter(int paramInt, @Nullable List<GoodsDetailModel.ResultDataBean.GoodsEvaluationsBean.EvaluationPicsBean> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, GoodsDetailModel.ResultDataBean.GoodsEvaluationsBean.EvaluationPicsBean paramEvaluationPicsBean)
  {
    ImageView localImageView = (ImageView)paramBaseViewHolder.getView(R.id.goods_evaluation_img);
    String picUrl = paramEvaluationPicsBean.getPicUrl();
    Glide.with(paramBaseViewHolder.itemView.getContext()).asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_noimg_xs).error(R.drawable.img_lose_xs)).load("http://117.158.178.202:8001/JLMIS/" + picUrl).into(localImageView);
    paramBaseViewHolder.addOnClickListener(R.id.goods_evaluation_img);
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/GoodsEvaluationImageAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */